//Start timer
void start_timer()
{
	TCNT1H = 0x00;
	TCNT1L = 0x00;
	TIMSK  = 0x10;	
}

//Stop timer
void stop_timer()
{
	TIMSK = 0x00;
	delay_us(10);
	timer_cnt = 1;
}

//Reset timer
void reset_timer()
{
	TIMSK = 0x00;
	delay_us(10);
	timer_cnt = 1;
	TIMSK = 0x10;
}